Release 10.1A: OpenEdge Application Server:
Developing WebSpeed Applications
Setting HTML attribute defaults
You can change the initialized defaults for all the HTML attributes of the
WEB-CONTEXThandle. (See the "Formatting DISPLAY output" section.) Create a text file in yourPROPATHwith the namedisplay.dat. In this file, you can specify a new HTML definition for one or all of these attributes. Any definitions that appear in this file override the hard-coded WebSpeed defaults both at startup and during the initialization of each Web request service.Entering attribute definitions
These are the basic rules for entering attribute definitions in
display.dat:This is the syntax for an HTML attribute definition:
You must enter each of these elements in order with no intervening spaces, except as noted.
delimiterThe first character of the first line of each definition. You can specify a different character for each attribute definition. Any text following on the same line as the third occurrence of
delimiteris ignored as comment until the end of the line. The next line must be a pound (#) comment line or start another attribute definition.HTML-attributeThe name of the
WEB-CONTEXTHTML attribute you are defining.#(Optional) If specified, pound (
#) allows you to startHTML-definitionon the next line (for readability only) without the precedingNEWLINEcharacter becoming part of the definition.HTML-definition(Optional) Any HTML you choose for the definition, including spaces and new lines. The definition starts with the first character after the second (and preceding)
delimiterunless you enter pound (#). If you enter pound (#), the definition starts with the first character after any immediately followingNEWLINE. The definition continues for as many lines as you want, up to the third (and final)delimiter. If you enter no characters between the second and thirddelimiter, the definition is the null string. No checking is done to determine if the definition makes sense for the specifiedHTML-attribute.Examples
The following text contains two associated HTML attribute definitions:
Note how the
HTML-FRAME-BEGINandHTML-FRAME-ENDreverse the order of the respective start and end tags to ensure their proper placement in the Web page.This is a definition for a null string:
Note: After creating or modifying
display.dat, you must restart your WebSpeed Transaction Server for this file to take effect.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |